const TAG = `ApiUtils`

export default class ApiUtils {


  /**
   * 获取目前API的版本-日期信息
   * @returns
   */
  public static getApiVersion(): string {

    return "1.0";
  }


  public static getPlatformInfo(): string {

    return "rk3128v1.x 5.1.1";
  }

  public static getServiceVersion(): string {

    return "1.0";
  }

  public static getRunStatus(key: string): string {

    return "1.0";
  }


  public static getSysRunStatus(key: string): string {

    return "1.0";
  }


  public static ethEnabled(en: boolean) {

  }

  public static setDHCPEthIPAddress() {

  }

  public static setStaticEthIPAddress() {

  }

  public static setWifiAP_Open(ssid: string, passwd: string) {

  }

  public static setWifiAP_Close() {

  }


  public static setWifiStaStatic_Open(ssid: string, passwd: string, ipaddr, gateway: string, netmask: string, dns: string) {

  }

  public static setWifiStaDhcp_Open(ssid: string, passwd: string) {

  }

  public static setWifiSta_Close() {

  }

  public static setGsmModule(module: number) {

  }

  public static getGsmModule(): string {

    return ""
  }

  public static setAutoGsmModule(enable: boolean) {

  }

  public static getAutoGsmModule(): boolean {

    return true
  }

  public static setGsmListen(enable: boolean) {

  }

  public static getGsmListen(): boolean {
    return false
  }

  public static setEthMac(mac: string) {

  }

  public static getEthMac(key: string): string {

    return ""
  }

  public static getGsmModuleList(): string {
    return ""
  }

  public static setOtgMode(enable: boolean) {

  }

  public static getOtgMode(): number {

    return -1
  }


  // 系统类设置

  public static setSystemTimeMillis(time: number) {

  }


  public static setSystemTime(year: number, month: number, day: number, hour: number, minute: number, sec: number) {

  }

  public static switchAutoTime(open: boolean) {

  }

  public static setSerial(serial: string) {

  }

  public static getSerial(): string {

    return ""
  }


  public static setAudioOutType(type: string) {

  }

  public static getAudioOutType(): string {

    return ""
  }

  public static setTouchStatus(status: string) {
  }

  public static getTouchStatus(): string {
    return ""
  }

  public static setBluetoothEnable(enable: boolean) {
  }

  public static setBluetoothName(name: string) {
  }

  public static setAudioVolume(vol: number) {
  }

  public static setNtpServer(ntp: string) {
  }

  public static getNtpServer(): string {
    return ""
  }

  public static setMainScreenTouch(type: string) {
  }

  public static getMainScreenTouch(): string {
    return ""
  }

  public static setMainNetwork(type: string) {
  }

  public static getMainNetwork(): string {
    return ""
  }

  public static setSwitch(status: string, enable: boolean) {
  }

  public static getSwitch(status: string): boolean {
    return false
  }

  public static setTouchWakeup(enable: boolean) {
  }

  public static getTouchWakeup(): boolean {
    return false
  }


  public static getDeviceSerial(): string {
    return ""
  }

  //显示类

  public static setHideNavBar(hide: boolean) {
  }

  public static getHideNavBar(): boolean {
    return false
  }

  public static setSlideNavBar(enable: boolean) {
  }

  public static getSlideNavBar(): boolean {
    return false
  }

  public static setMainScreenRotation(rotation: number) {
  }

  public static getMainScreenRotation(): number {
    return -1
  }

  public static setSubScreenRotation(rotation: number) {
  }

  public static getSubScreenRotation(): number {
    return -1
  }

  public static setCameraRotation(rotation: number) {
  }

  public static getCameraRotation(): number {
    return -1
  }

  public static setDisplayDensity(dpi: number) {
  }

  public static getDisplayDensity(): number {
    return -1
  }

  public static getDisplayType(): string {
    return ""
  }

  public static getDisplayList(): string {
    return ""
  }

  public static setBrightness(brightness: number) {
  }

  public static getBrightness(): number {
    return -1
  }

  public static getDisplayWidth(): number {
    return -1
  }

  public static getDisplayHeight(): number {
    return -1
  }

  public static setHWRotation(rotation: number) {
  }

  public static getHWRotation(): number {
    return -1
  }

  public static rebootSystem() {
  }

  public static shutdownSystem() {
  }

  public static getCPUTemperature(): number {
    return -1
  }

  public static exportGpio(gpio: number): boolean {
    return false
  }

  public static setGpioDirection(gpio: number, gpioDirection: string) {
  }

  public static getGpioDirection(gpio: number): string {
    return ""
  }

  public static setGpioValue(gpio: number, value: number) {
  }

  public static getGpioValue(gpio: number): number {
    return -1
  }

  public static setGpioValue_force(gpio: number, value: number): number {
    return -1
  }

  public static getGpioValue_force(gpio: number): number {
    return -1
  }

  public static getUSBStoragePath(): string {
    return ""
  }

  public static setKeyValue(key: string, val: string) {
  }

  public static getKeyValue(keyl: string): string {
    return ""
  }

  //   silentInstallHap(hapFilePaths: string, installParam: InstallParam, callback: AsyncCallback<>)
  //   {}
  //   silentUnInstallHap( packageName:string, callback: AsyncCallback<>)
  // {}
  public static setTimerPower(powerOnTime: number[], powerOffTime: number[], weekdays: number[]) {
  }

  public static clearTimerPower() {

  }

  public static getTimerPowerStatus(): boolean {
    return false
  }

  public static getTimerPowerOn(): number[] {
    return
  }

  public static getTimerPowerOff(): number[] {
    return
  }

  public static getTimerPowerWeek(): number[] {
    return
  }

  public static setTimerReboot(rebootTime: number[]) {
  }

  public static clearTimerReboot() {
  }

  public static setAppListen(pkgName: string, timeout: number) {
  }

  public static getAppListen(): string {
    return ""
  }

  public static setAppBoot(pkgname: string) {
  }

  public static getAppBoot(): string {
    return ""
  }

  public static setAppInstallPasswd(passwd: string) {
  }

  public static getAppInstallPasswd(): string {
    return ""
  }

  public static EnableWtd(timeout_s: number): number {
    return -1
  }

  public static FeedWdt(): number {
    return -1
  }

  public static DisableWdt(): number {
    return -1
  }

  public static getTimeoutWdt(): number {
    return -1
  }

  public static systemUpdate(file: string) {
  }
}